package org.example;

public class HeadDecorator1 extends DecorateForm{
    private Form form;

    public HeadDecorator1() {
    }

    public HeadDecorator1(Form form) {
        this.form = form;
    }

    public void addHead1(){
        this.form.setContent("表头1"+form.getContent());
    }

    public String getContent() {
        return form.getContent();
    }
}
